package com.example.demo.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.example.demo.mapper.TeaMapper;
import com.example.demo.model.Tea;
import com.example.demo.service.TeaService;

@Service
public class TeaServiceImpl implements TeaService {
	@Resource
	private TeaMapper teaMapper;

	@Override
	public Boolean insert(Tea tea) {
		return teaMapper.insert(tea);
	}

	@Override
	public List<Tea> select() {
		return teaMapper.select();
	}
	@Override
	public Tea selectone(Integer id) {
		return teaMapper.selectone(id);
	}
	
	@Override
	public Boolean delete(Integer id) {
		return teaMapper.delete(id);	
	}

	@Override
	public Integer update(Integer id,Tea tea) {
		return teaMapper.update(id,tea);
	}

	

	
	

	
	
	 
}
